function(head, req) {
	
  header = function() {
	 return '<?xml version="1.0" encoding="UTF-\8"?> \
	 <rdf:RDF  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" \
	   xmlns="http://purl.org/rss/1.0/"\
	   xmlns:dc="http://purl.org/dc/elements/1.1/"\
	   xmlns:georss="http://www.georss.org/georss">\
	   <docs></docs>\
	   <channel rdf:about="http://platial.com">\
	   <link>http://example.my</link>\
	   <title>Collected Images</title>\
	   <description></description>\
	   </channel>';
  } ;
  
  footer = function() {
	  return '</rdf:RDF>';
  };
  
  wrap = function(tag, content) {
	  return "<" + tag + ">" + content + "</" + tag + ">";
  }	  
  
  var row;
  start({
    "headers": {
      "Content-Type": "text/html"
     }
  });
  send(header());
  var lines
  while(row = getRow()) {
	  send("ASDF");
    for(var p in row) {
    	send(p);
    }
	lines = [];  
	lines.push(wrap("title", 'Butterfly'));
	lines.push(wrap("description", "tag:" + row.value.tag));
	lines.push(wrap("link", '_list/single/all?key=%22'+row.id+'%22'));
	lines.push(wrap("georss:point", row.value.lat + " " + row.value.lng));
	lines.push(wrap("dc:creator", "butterflybot"));
	lines.push(wrap("dc:date", "2006-06-08T17:35:01.942452+00:00"));
    send(wrap("item", lines));
  }
  send(footer());
}